package com.longcai.piaojia.conn;

import com.longcai.piaojia.BaseApplication;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONArray;
import org.json.JSONObject;

/**
 * Created by Administrator on 2017/1/10.
 */
@HttpInlet(Conn.LATEST_PAY)
public class LatestOrderSurePost extends BaseAsyPost<String> {

    public String data;

    public LatestOrderSurePost(AsyCallBack<String> asyCallBack) {
        super(asyCallBack);
    }

    @Override
    protected String parser(JSONObject object) throws Exception {

        TOAST = object.optString("message");

        if (object.optInt("code") == 200) {

            return object.optString("data");

        }
        return null;
    }
}
